<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>数据处理页面</title>
</head>
<body bgcolor="cccfff">
      <jsp:useBean id="dbconn" class="bean.DBConnectionManager"></jsp:useBean>
   <%
    Connection con=dbconn.getConnection();
   Statement stmt=con.createStatement();
   String id=request.getParameter("id");
   byte b[]=id.getBytes("iso-8859-1");
   id=new String(b,"utf-8");
   String sql="delete from t_teacher where teano="+id;
   stmt.executeUpdate(sql);
   %>
   <center>
     <h2>删除教师信息</h2>
     <p>该教师记录已经被删除！</p>
     <form action="lookTeacher.jsp" method="post">
       <input type="submit" value="返回">
     </form>
   
   </center>
</body>
</html>